import request from '@/utils/request'

// get 获得积分账户列表数据
export function getRewardPointAccountList(params) {
  return request({
    url: '/ops/rewardPointAccount/list',
    method: 'get',
    params
  })
}

// post 更新积分账户数据
export function updatePointAccount(data) {
  return request({
    url: '/ops/rewardPointAccount/update',
    method: 'post',
    data
  })
}

// get 获得账户数据
export function getUserDeatil(id) {
  return request({
    url: '/ops/user/getById',
    method: 'get',
    params: { id: id }
  })
}

// get 获得积分账户操作记录数据
export function getRewardPointAccountFlowList(params) {
  return request({
    url: '/ops/rewardPointAccountFlow/list',
    method: 'get',
    params
  })
}
